﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace JqueryNet.FormControl.FormWebControl
{
    public class JLiteral : JWebControl
    {
        Literal literal;
        public JLiteral(Literal literal)
            : base(null)
        {
            this.literal = literal;            
        }

        public override void Hide()
        {
            literal.Visible = false;
        }

        public override void Show()
        {
            literal.Visible = true;
        }
      
        public override void Val()
        {            
            Value = literal.Text;
        }
        public override void Val(string value)
        {
            literal.Text = value;
        }
    }
}
